package com.ruoyi.aslife.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论信息管理对象 comment
 * 
 * @author ruoyi
 * @date 2022-12-01
 */
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long cid;

    /** 父ID */
    @Excel(name = "父ID")
    private Long parentId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commentDetails;

    /** 评论日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commentDate;

    /** 文章标识 */
    @Excel(name = "文章标识")
    private Long contentFlag;

    /** 文章ID */
    @Excel(name = "文章ID")
    private Long aid;

    /** 回复评论的ID */
    @Excel(name = "回复评论的ID")
    private Long replyCommentId;

    /** 回复用户ID */
    @Excel(name = "回复用户ID")
    private Long replyUserId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 回复用户姓名 */
    @Excel(name = "回复用户姓名")
    private String replyUserName;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long goods;

    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCommentDetails(String commentDetails) 
    {
        this.commentDetails = commentDetails;
    }

    public String getCommentDetails() 
    {
        return commentDetails;
    }
    public void setCommentDate(Date commentDate) 
    {
        this.commentDate = commentDate;
    }

    public Date getCommentDate() 
    {
        return commentDate;
    }
    public void setContentFlag(Long contentFlag) 
    {
        this.contentFlag = contentFlag;
    }

    public Long getContentFlag() 
    {
        return contentFlag;
    }
    public void setAid(Long aid) 
    {
        this.aid = aid;
    }

    public Long getAid() 
    {
        return aid;
    }
    public void setReplyCommentId(Long replyCommentId) 
    {
        this.replyCommentId = replyCommentId;
    }

    public Long getReplyCommentId() 
    {
        return replyCommentId;
    }
    public void setReplyUserId(Long replyUserId) 
    {
        this.replyUserId = replyUserId;
    }

    public Long getReplyUserId() 
    {
        return replyUserId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setReplyUserName(String replyUserName) 
    {
        this.replyUserName = replyUserName;
    }

    public String getReplyUserName() 
    {
        return replyUserName;
    }
    public void setGoods(Long goods) 
    {
        this.goods = goods;
    }

    public Long getGoods() 
    {
        return goods;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cid", getCid())
            .append("parentId", getParentId())
            .append("userId", getUserId())
            .append("commentDetails", getCommentDetails())
            .append("commentDate", getCommentDate())
            .append("contentFlag", getContentFlag())
            .append("aid", getAid())
            .append("replyCommentId", getReplyCommentId())
            .append("replyUserId", getReplyUserId())
            .append("userName", getUserName())
            .append("replyUserName", getReplyUserName())
            .append("goods", getGoods())
            .toString();
    }
}
